package com.qjdchina.sku.model.vo;

import java.util.ArrayList;
import java.util.List;

public class CategoryMenuVO {

	private Integer id;

	private String code;

	private String label;

	private Integer parentId;
	/**
	 * 是否中标
	 */
	private String isBid;
	/**
	 * 品类检测
	 */
	private String categoryCheck;

	/**
	 * 技术标准
	 */
	private String technicalStandard;

	private List<CategoryMenuVO> childs;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public List<CategoryMenuVO> getChilds() {
		return childs;
	}

	public void setChilds(List<CategoryMenuVO> childs) {
		this.childs = childs;
	}

	public void addChild(CategoryMenuVO child) {

		if (null == this.childs) {
			this.childs = new ArrayList<>();
		}
		this.childs.add(child);
	};

	public String getIsBid() {
		return isBid;
	}

	public void setIsBid(String isBid) {
		this.isBid = isBid;
	}

	public String getCategoryCheck() {
		return categoryCheck;
	}

	public void setCategoryCheck(String categoryCheck) {
		this.categoryCheck = categoryCheck;
	}

	public String getTechnicalStandard() {
		return technicalStandard;
	}

	public void setTechnicalStandard(String technicalStandard) {
		this.technicalStandard = technicalStandard;
	}

	@Override
	public String toString() {
		return "CategoryMenuVO [id=" + id + ", code=" + code + ", label=" + label + ", parentId=" + parentId
				+ ", isBid=" + isBid + ", categoryCheck=" + categoryCheck + ", technicalStandard=" + technicalStandard
				+ ", childs=" + childs + "]";
	}

}